package Server.Tasks;
import java.util.Comparator;

public abstract class Task {

	int priority;
	String data;
	
	public Task(int priority, String d) {
		this.priority = priority;
		this.data = d;
	}

	public String getData() {
		return data;
	}
	
	public static class TaskCompare implements Comparator<Task> {
		
		public TaskCompare() {};
		
		public int compare(Task a, Task b) {
			return a.priority - b.priority;
		}
	}
	
	public abstract void ProcessTask();
}
